import { BasicFetchResult } from '../../model/baseModel';
import { defHttp } from '@/utils/http/axios';
const api = '/sysExportConfig';
/**
 * 查询系统导出配置分页
 * @author frank
 * @date 2023-07-11 17:54:34
 */
export const page = (params?: any) =>
  defHttp.get<BasicFetchResult<any>>({ url: api + '/page', params });
/**
 * 添加系统导出配置
 * @author frank
 * @date 2023-07-11 17:54:34
 */
export const add = (params?: any) =>
  defHttp.post({ url: api + '/add', params });
/**
 * 修改系统导出配置
 * @author frank
 * @date 2023-07-11 17:54:34
 */
export const edit = (params?: any) =>
  defHttp.post({ url: api + '/edit', params });

/**
 * 删除系统导出配置
 * @author frank
 * @date 2023-07-11 17:54:34
 */
export const del = (ids: string[]) =>
  defHttp.post({ url: api + '/delete', params: ids });

export const init = () => defHttp.post({ url: api + '/init' });
